/**
 * @file
 * @author Ivan Babushkin (jogrms@gmail.com)
 * @date 13.06.2010
 */

#ifndef WEBVIEW_H
#define WEBVIEW_H

#include <QtWebKit/QWebView>
#include <QtWebKit/QWebPage>
#include <qodefault.h>
//#include <mainwindow.h>

class WebView: public QWebView {
	Q_OBJECT

	public:

		WebView(struct QOSettings *settings, QWidget *parent = 0);
		~WebView();

		int getProgress();

	protected:

		virtual WebView* createWindow(QWebPage::WebWindowType type);
		void keyPressEvent(QKeyEvent *event);
		void wheelEvent(QWheelEvent *event);

	private:

		int progress;

	public slots:

		void setProgress(int progress);
};

#endif // WEBVIEW_H
